@ECHO OFF
SET b=%~x1
SET c=%b:~1%
IF NOT "%b%"=="" (ECHO %c% & PAUSE) ELSE (ECHO 无扩展名!& PAUSE)